package org.jvending.provisioning.stocking.par.impl;

public class ProvisioningArchiveTypeDriver implements org.apache.ws.jaxme.impl.JMSAXDriver {
  public org.xml.sax.helpers.AttributesImpl getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController pController, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.xml.sax.helpers.AttributesImpl _1 = new org.xml.sax.helpers.AttributesImpl();
    return _1;
  }

  public java.lang.String getPreferredPrefix(java.lang.String pURI) {
    if (pURI == null) {
      pURI = "";
    }
    if (pURI.equals("http://java.sun.com/xml/ns/j2ee-cp")) {
      return "j2ee-cp";
    }
    return null;
  }

  public void marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController pController, org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException {
    org.jvending.provisioning.stocking.par.ProvisioningArchiveType _1 = (org.jvending.provisioning.stocking.par.ProvisioningArchiveType) pObject;
    org.jvending.provisioning.stocking.par.ToolDescriptionsType _2 = _1.getToolDescriptions();
    if (_2 != null) {
      org.apache.ws.jaxme.impl.JMSAXDriver _3 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.ToolDescriptions.class).getDriver();
      pController.marshal(_3, "http://java.sun.com/xml/ns/j2ee-cp", "tool-descriptions", _1.getToolDescriptions());
    }
    java.util.List _4 = _1.getClientBundle();
    for (int _5 = 0;  _5 < (_4).size();  _5++) {
      org.apache.ws.jaxme.impl.JMSAXDriver _6 = pController.getJMMarshaller().getJAXBContextImpl().getManagerS(org.jvending.provisioning.stocking.par.ClientBundle.class).getDriver();
      pController.marshal(_6, "http://java.sun.com/xml/ns/j2ee-cp", "client-bundle", (org.jvending.provisioning.stocking.par.ClientBundleType)_4.get(_5));
    }
  }

}
